package top.huhuiyu.teachproject.utils;

import top.huhuiyu.teachproject.entity.AuthInfo;

public class AuthInfoUtils {
  private static ThreadLocal<AuthInfo> threadLocal = new ThreadLocal<>();

  public static AuthInfo authInfo() {
    return threadLocal.get();
  }

  public static void put(AuthInfo authInfo) {
    threadLocal.set(authInfo);
  }

}
